﻿using QG.FrontDesk.BLL.IService;
using QG.FrontDesk.DAL.IRepository;
using QG.FrontDesk.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QG.FrontDesk.BLL.Service
{
   public class ClassifyinfoService: IClassifyinfoService
    {

        private IClassifyinfoRepository classifyinfoRepository;
        public ClassifyinfoService(IClassifyinfoRepository classifyinfoRepository)
        {
            this.classifyinfoRepository = classifyinfoRepository;
        }
        /// <summary>
        /// 获取菜单列表信息
        /// </summary>
        /// <returns></returns>
        public List<Classifyinfo> GetClassifyinfos()
        {
            return classifyinfoRepository.GetClassifyinfos();
        }
        /// <summary>
        /// 获取所有职位名称
        /// </summary>
        /// <returns></returns>
        public List<PostName> GetPostNames()
        {
            return classifyinfoRepository.GetPostNames();
        }
    }
}
